package com.hxzy.shop.commodity.dto.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;
import java.util.List;

/**
 * @Author ht
 * @Date 2021/9/24 15:05
 * @Version 1.0
 */
@Data
public class BatchUpdateStockReq implements Serializable {

    @ApiModelProperty(value = "药品id")
    private List<Long> drugs;

    @ApiModelProperty(value = "门店id")
    private Long storeId;

    @ApiModelProperty(value = "库存")
    @PositiveOrZero(message = "库存数量不能为负")
    private Integer stock;
}
